﻿using System;
using System.Collections.Generic;

namespace MQTTServer.Models
{
    /// <summary>
    /// 以图搜索本地人脸库返回
    /// </summary>
    public class GetPictureSearchAck
    {
        /// <summary>
        ///  以图搜索本地人脸库返回
        /// </summary>
        public string Operator { get; set; }

        /// <summary>
        /// 消息 id,区分每一条消
        /// </summary>
        public string MessageId { get; set; }

        /// <summary>
        ///  GetPictureSearchAckInfo
        /// </summary>
        public GetPictureSearchAckInfo Info { get; set; }
    }

    public class GetPictureSearchAckInfo
    {
        /// <summary>
        /// 一体机设备号 id,返回值
        /// </summary>
        public string? FacesluiceId { get; set; }
        /// <summary>
        /// 返回数量
        /// </summary>
        public int TotalNum { get; set; }
        /// <summary>
        /// 操作结果
        /// </summary>
        public string? Result { get; set; }
        /// <summary>
        /// 当 result 为“fail”时，错误信息
        /// </summary>
        public string? detail { get; set; }
        /// <summary>
        /// 当 result 为“fail”时，错误信息
        /// </summary>
        public List<SearchInfo> SearchInfo { get; set; }
    }

    public class SearchInfo
    {
    /// <summary>
    ///  平台生成的 id,唯一标识不同人员，建议使用身份证号，传入 customId设备已经存在视为修改，否则为增加
    /// </summary>
    public string CustomId { get; set; }
    /// <summary>
    ///  0: 白名单 1: 黑名单
    /// </summary>
    public PersonType PersonType { get; set; }
    /// <summary>
    ///  名字
    /// </summary>
    public string name;
    /// <summary>
    ///  民族
    /// </summary>
    public Nation? Nation { get; set; }
    /// <summary>
    ///  性别
    /// </summary>
    public Gender? Gender { get; set; }
    /// <summary>
    ///  证件号码
    /// </summary>
    public string? idCard { get; set; }
    /// <summary>
    ///  生日
    /// </summary>
    public DateTime? birthday { get; set; }
    /// <summary>
    ///  电话号码
    /// </summary>
    public string? telnum1 { get; set; }
    /// <summary>
    ///  籍贯
    /// </summary>
    public string? native { get; set; }
    /// <summary>
    ///  住址
    /// </summary>
    public string? address { get; set; }
    /// <summary>
    ///  备注
    /// </summary>
    public string? notes { get; set; }
    /// <summary>
    ///  韦根卡号生成方式(0: 公用卡号 1: 自动生成 2: 手动输入 3: 不使用门禁)
    /// </summary>
    public CardType2? CardType2 { get; set; }
    /// <summary>
    ///  韦根门禁卡号(userid) cardType2 为 2 时必填
    /// </summary>
    public int? CardNum2 { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public DateTime time { get; set; }
    }
}